package inc.gome.dynamic.datasource;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import inc.gome.dynamic.datasource.dynamic.param.Bridge;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


/*排除 DruidDataSourceAutoConfigure 创建多个数据源*/
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
public class DynamicDatasourceApplication {

	public static void main(String[] args){
		ConfigurableApplicationContext run = SpringApplication.run(DynamicDatasourceApplication.class, args);

		/*//              101111011100010110001101010000010000
		//1111010000000 101111011100010110001101010000010000 000000000001
		//0000000000000 111111111111111111111111111111111111 000000000000
		System.out.println("==============================================");
		for(int i=0;i<10;i++)
		new Thread(()->{
			long l = UUIDGenerator.generateUUID();
			System.out.println(l);
		}).start();

		System.out.println("============================================== end");
		*/
	}


}
